package com.qf.sy2103.ssm.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {
    private Integer id ;
    private String name;
    private String password;
    private String email;
    private String filename;
    private Integer status;

    public User(String name, String password, String email, String filename, Integer status) {
        this.name = name;
        this.password = password;
        this.email = email;
        this.filename = filename;
        this.status = status;
    }
    public String toCSVString() {
        return id+","+name+","+password+","+email+","+filename+","+status;
    }
}
